package com.xnew.api;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import com.xnewtech.xplatform.swan.model.page.PageResult;
import com.xnew.model.params.SysFileInfoParam;
import com.xnew.model.result.SysFileInfoResult;

import java.util.List;


/**
 * 文件信息表远程接口
 *
 * @author shj
 * @Date 2021-08-09 15:49:46
 */
@RequestMapping("/sysFileInfo")
public interface SysFileInfoApi {

    /**
     * 新增
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/add")
    void add(@RequestBody SysFileInfoParam param);

    /**
     * 删除
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/delete")
    void delete(@RequestBody SysFileInfoParam param);

    /**
     * 更新
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/update")
    void update(@RequestBody SysFileInfoParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/findBySpec")
    SysFileInfoResult findBySpec(@RequestBody SysFileInfoParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/findListBySpec")
    List<SysFileInfoResult> findListBySpec(@RequestBody SysFileInfoParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author shj
     * @Date 2021-08-09
     */
    @RequestMapping("/findPageBySpec")
    PageResult<SysFileInfoResult> findPageBySpec(@RequestBody SysFileInfoParam param);

}
